{% extends "house/base.html" %}
{% block title %}Свойства операции{% endblock %}
{% block content_title %}{% endblock %}

{% block sub_menu %}
<li><a href="{% url current_month %}">Текущий месяц</a></li>
<li><a href="{% url house_report %}">Отчет</a></li>
{% endblock %} 

{% block mainmenuitem_2 %}class="mainMenuSelectedItem"{% endblock %}

{% block main %}
<h2>{% if operation.kind == "A" %}Поступление{% else %}Расход{% endif %} № {{ operation.id }} от {{ operation.data|date:"j F Y" }} г.</h2>
<div class="floats">
<table class="summaryInfo" style="width: 80%">
  <tr><td class="label"><span>Номер</span></td><td>{{ operation.id }}</td></tr>
    <tr><td></td><td></td></tr> 
  <tr><td class="label"><span>Дата</span></td><td>{{ operation.data|date:"j F Y г.,   H:i" }}</td></tr>
  <tr><td></td><td></td></tr>   
  <tr><td class="label"><span>Наименование</span></td><td><strong>{{ operation.name }}</strong></td></tr>
  <tr><td></td><td></td></tr>   
  <tr><td class="label"><span>Тип</span></td><td>{% if operation.kind == "A" %}Поступление{% else %}Расход{% endif %}</td></tr>
  <tr><td></td><td></td></tr>   
  <tr><td class="label"><span>Сумма</span></td><td>{{ operation.quantity }} X {{ operation.price }} р. = <strong>{{ operation.amount|cut:"-" }} р.</strong></td></tr>
  <tr><td></td><td></td></tr>   
  <tr><td class="label"><span>Период</span></td><td>{{ processed_month_verbose }} {{ operation.period_year}} г.</td></tr>
  <tr><td></td><td></td></tr>   
  <tr><td class="label"><span>Коментарий</span></td><td>{{ operation.comment|default:"нет" }}</td></tr>
</TABLE>
</div>
{% endblock %}
